feat(network): harden NetworkManager layer for 24/7 reliability - #306
Closed
gmmcosta15 wants to merge 17 commits into
Closed
gmmcosta15 wants to merge 17 commits into
gmmcosta15 wants to merge 17 commits into
Conversation
…m wired autoconnect
…nd keyboard files
1 task done
Collaborator
Author
gmmcosta15
added a commit
that referenced
this pull request
Sep 28, 2026
) # Description - [x] Bug fix Stacked on #311, review after it merges. Last PR in the #306 split. Live Wi-Fi signal strength and auth-failure classification. - `_active_ap_signal`, `_signal_map_once`, `_read_connectivity`, `_is_wifi_ap_mode` - `_classify_settings_error`; `_validate_psk` follows NM's own psk rule (length in bytes, SAE exempt) and runs before the old profile is backed up - `_wait_for_connection` stops early when the Wi-Fi device reports FAILED (the StateChanged listener counts it, since NM leaves FAILED too fast for polling to see it) - Connection waits read the Wi-Fi interface's own IP, so an ethernet or VPN primary link can't fake success - `_async_get_network_password` prefills the saved-network password field; saved page shows the static IP/mask - `networkWindow.py` operation-result routing (success/failure/timeout handlers); the hotspot page's activate drops ethernet like the toggle does - `test_network_ui.py`, `test_worker_unit.py`, `test_worker_helpers_unit.py` coverage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Hardens the network layer for 24/7 operation and makes Wi-Fi recovery reliable enough that a user can always get back online to update. Stays fully async on sdbus signal watching.
Tests
Coverage:
models.py100%,manager.py99%,keyboardPage.py90%,networkWindow.py87%,worker.py70%.Future work
_build_signal_mapfan-out.NameOwnerChangedwould be a cleaner NM-restart trigger.worker.py, still large after the complexity work.